home *** CD-ROM | disk | FTP | other *** search
/ Treccani Italiana Di Scienze Lettere Ed Arti / [Enciclopedia] Treccani Italiana di scienze lettere ed arti.iso / pc / data / xxi_appendice_dvd.swf / scripts / __Packages / mx / remoting / Connection.as < prev    next >
Text File  |  2007-11-08  |  2KB  |  75 lines

  1. class mx.remoting.Connection extends NetConnection
  2. {
  3.    static var version = "1.2.0.124";
  4.    function Connection()
  5.    {
  6.       super();
  7.    }
  8.    function getService(serviceName, client)
  9.    {
  10.       var _loc2_ = new mx.remoting.NetServiceProxy(this,serviceName,client);
  11.       return _loc2_;
  12.    }
  13.    function setCredentials(userId, password)
  14.    {
  15.       this.addHeader("Credentials",false,{userid:userId,password:password});
  16.    }
  17.    function clone()
  18.    {
  19.       var _loc2_ = new mx.remoting.Connection();
  20.       _loc2_.connect(this.uri);
  21.       return _loc2_;
  22.    }
  23.    function getDebugId()
  24.    {
  25.       return null;
  26.    }
  27.    function getDebugConfig()
  28.    {
  29.       return null;
  30.    }
  31.    function setDebugId(id)
  32.    {
  33.    }
  34.    function updateConfig()
  35.    {
  36.    }
  37.    function call()
  38.    {
  39.       super.call.apply(super,arguments);
  40.    }
  41.    function close()
  42.    {
  43.       super.close();
  44.    }
  45.    function connect(url)
  46.    {
  47.       return super.connect(url);
  48.    }
  49.    function addHeader(name, mustUnderstand, obj)
  50.    {
  51.       super.addHeader(name,mustUnderstand,obj);
  52.    }
  53.    function trace(traceObj)
  54.    {
  55.    }
  56.    function AppendToGatewayUrl(urlSuffix)
  57.    {
  58.       this.__urlSuffix = urlSuffix;
  59.       if(this.__originalUrl == null)
  60.       {
  61.          this.__originalUrl = this.uri;
  62.       }
  63.       var _loc2_ = this.__originalUrl + urlSuffix;
  64.       this.connect(_loc2_);
  65.    }
  66.    function ReplaceGatewayUrl(newUrl)
  67.    {
  68.       this.connect(newUrl);
  69.    }
  70.    function RequestPersistentHeader(info)
  71.    {
  72.       this.addHeader(info.name,info.mustUnderstand,info.data);
  73.    }
  74. }
  75.